-- while
next = string.gmatch("0A0B0C0D", "..") 
local byte = next()
while byte ~= nil do
    print(byte)
    byte = next()
end
print("-------------------")

-- numeric for
for i = 1, 10, 2 do print(i) end

print("-------------------")

-- generic for
for k, v in pairs({1, 2, 3, 4, 5})  do print(k, v) end

